package forms

// gorm.Model
// UserId    int        `gorm:"column:user_id;type:int;not null"`
// Title     string     `gorm:"column:title;index:idx_title;type:varchar(225);not null"`
// Describe  string     `gorm:"column:describe;type:varchar(225);not null"`
// StartDate *time.Time `gorm:"column:start_date;type:datetime;not null"`
// EndDate   *time.Time `gorm:"column:end_date;type:datetime;not null"`
// Reward    int        `gorm:"column:reward;type:int;not null"`
// Address   string     `gorm:"column:address;type:varchar(225);not null"`
// Phone     string     `gorm:"column:phone;type:varchar(11);not null"`
// Age       int        `gorm:"column:age;type:int;not null"`
// Name      string     `gorm:"column:name;type:varchar(20);not null"`
// Sex       int        `gorm:"column:sex;type:int;not null"`
// Onwer     User
type SubscribeReq struct {
	UserId    int    `json:"user_id" binding:"required"`
	Title     string `json:"title" binding:"required"`
	Describe  string `json:"describe" binding:"require;max=225;min=0"`
	StartDate string `json:"start_date" binding:"required"`
	EndDate   string `json:"end_date" binding:"required"`
	Reward    int    `json:"reward" binding:"required"`
	Address   string `json:"address" binding:"required;max=60;min=0"`
	Phone     string `json:"phone" binding:"required;mobile"`
}
